@echo off
set /a WaitTime=120
echo =================================================
echo Running Photon Mapping Tests
echo =================================================
echo.

REM ====================================================
REM These tests check how well the techniques can handle
REM different photon map  sizes

REM ***********************
REM Running global PM tests
echo Performing 10K Photon Map tests
call testGlobal.bat 10 20 1.0 640 480

echo Performing 20K Photon Map tests
call testGlobal.bat 20 20 1.0 640 480

echo Performing 50K Photon Map tests
call testGlobal.bat 50 20 1.0 640 480

echo Performing 100K Photon Map tests
call testGlobal.bat 100 20 1.0 640 480

echo Performing 200K Photon Map tests
call testGlobal.bat 200 20 1.0 640 480

echo Performing 1000K Photon Map tests
call testGlobal.bat 1000 20 1.0 640 480

REM -----------------------------------------
REM Sleep a few seconds before the next tests
sleep %WaitTime% /quiet
REM -----------------------------------------

REM ***********************
REM Running caustic PM tests
echo Performing 10K Photon Map tests
call testCaustic.bat 10 20 1.0 640 480

echo Performing 20K Photon Map tests
call testCaustic.bat 20 20 1.0 640 480

echo Performing 50K Photon Map tests
call testCaustic.bat 50 20 1.0 640 480

echo Performing 100K Photon Map tests
call testCaustic.bat 100 20 1.0 640 480

echo Performing 200K Photon Map tests
call testCaustic.bat 200 20 1.0 640 480

REM -----------------------------------------
REM Sleep a few seconds before the next tests
sleep %WaitTime% /quiet
REM -----------------------------------------


REM ====================================================
REM These tests check how well the techniques can handle
REM different photon gathering sizes

REM ***********************
REM Running global PM tests
echo Performing test with 10 samples
call testGlobal.bat 50 10 1.0 640 480

echo Performing test with 30 samples
call testGlobal.bat 50 30 1.0 640 480

echo Performing test with 40 samples
call testGlobal.bat 50 40 1.0 640 480

echo Performing test with 50 samples
call testGlobal.bat 50 50 1.0 640 480

REM -----------------------------------------
REM Sleep a few seconds before the next tests
sleep %WaitTime% /quiet
REM -----------------------------------------

REM ***********************
REM Running caustic PM tests
echo Performing test with 10 samples
call testCaustic.bat 50 10 1.0 640 480

echo Performing test with 30 samples
call testCaustic.bat 50 30 1.0 640 480

echo Performing test with 40 samples
call testCaustic.bat 50 40 1.0 640 480

echo Performing test with 50 samples
call testCaustic.bat 50 50 1.0 640 480

REM -----------------------------------------
REM Sleep a few seconds before the next tests
sleep %WaitTime% /quiet
REM -----------------------------------------

REM ====================================================
REM These tests check how well the techniques can handle
REM different photon gathering radii

REM ***********************
REM Running global PM tests
echo Performing test with radius 0.5
call testGlobal.bat 50 20 0.5 640 480

echo Performing test with radius 0.75
call testGlobal.bat 50 20 0.75 640 480

echo Performing test with radius 1.25
call testGlobal.bat 50 20 1.25 640 480

echo Performing test with radius 1.5
call testGlobal.bat 50 20 1.5 640 480

echo Performing test with radius 2.0
call testGlobal.bat 50 20 2.0 640 480

REM -----------------------------------------
REM Sleep a few seconds before the next tests
sleep %WaitTime% /quiet
REM -----------------------------------------

REM ***********************
REM Running caustic PM tests
echo Performing test with radius 0.5
call testCaustic.bat 50 20 0.5 640 480

echo Performing test with radius 0.75
call testCaustic.bat 50 20 0.75 640 480

echo Performing test with radius 1.25
call testCaustic.bat 50 20 1.25 640 480

echo Performing test with radius 1.5
call testCaustic.bat 50 20 1.5 640 480

echo Performing test with radius 2.0
call testCaustic.bat 50 20 2.0 640 480

REM -----------------------------------------
REM Sleep a few seconds before the next tests
sleep %WaitTime% /quiet
REM -----------------------------------------

REM ====================================================
REM These tests check how well the techniques can handle
REM different resolutions (gathering queries)

REM ***********************
REM Running global PM tests
echo Performing test with resolution 320x240
call testGlobal.bat 50 20 1.0 320 240

echo Performing test with resolution 800x600
call testGlobal.bat 50 20 1.0 800 600

echo Performing test with resolution 1024x768
call testGlobal.bat 50 20 1.0 1024 768

echo Performing test with resolution 1280x1024
call testGlobal.bat 50 20 1.0 1280 1024

REM -----------------------------------------
REM Sleep a few seconds before the next tests
sleep %WaitTime% /quiet
REM -----------------------------------------

REM ***********************
REM Running caustic PM tests
echo Performing test with resolution 320x240
call testCaustic.bat 50 20 1.0 320 240

echo Performing test with resolution 800x600
call testCaustic.bat 50 20 1.0 800 600

echo Performing test with resolution 1024x768
call testCaustic.bat 50 20 1.0 1024 768

echo Performing test with resolution 1280x1024
call testCaustic.bat 50 20 1.0 1280 1024

echo Tests finished
echo Expected result files: 19 global pm, 19 caustic pm
